package io.renren.modules.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.device.entity.TAlarmType;
import io.renren.modules.device.entity.TDeviceCategory;
import io.renren.modules.device.entity.TDeviceEntity;
import io.renren.modules.device.entity.vo.DeviceVO;

import java.util.List;
import java.util.Map;

/**
 * 设备表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-03-29 11:51:23
 */
public interface TDeviceService extends IService<TDeviceEntity> {

    PageUtils queryPage(Map<String, Object> params);

    DeviceVO getDeviceInfoById(String deviceId);

    List<TDeviceCategory> listCategories();

    TDeviceCategory categoryInfo(String categoryId);

    List<TAlarmType> listAlarmTypes();

    boolean updateOnlineStatus(String deviceCode, boolean onlineStatus);
}

